Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Functions That Modify Movie Properties


Working with Movie Time

Every QuickTime movie has its own time base. A movie's time base allows all the tracks that make up the movie to be synchronized when the movie is played. The Movie Toolbox provides a number of functions that allow your application to determine and establish the time parameters of a movie. This section discusses those functions. Later sections in this chapter discuss the Movie Toolbox functions that allow you to work with the time parameters of tracks and media structures. For a complete discussion of the relationships between movie, track, and media time parameters, see "Introduction to Movies" beginning on page 2-5. For information about more functions that work with time, see "Time Base Functions" beginning on page 2-296.

You can use the GetMovieTimeBase function to retrieve the time base for a movie.

You can work with a movie's current time by calling the GetMovieTime, SetMovieTime, and SetMovieTimeValue functions.

You can work with a movie's time scale by calling the GetMovieTimeScale and SetMovieTimeScale functions.

The Movie Toolbox can calculate the total duration of a movie. You can use the GetMovieDuration function to retrieve a movie's duration.

Your application can call the GetMovieRate and SetMovieRate to work with a movie's playback rate.


Subtopics
GetMovieDuration
SetMovieTimeValue
SetMovieTime
GetMovieTime
SetMovieRate
GetMovieRate
SetMovieTimeScale
GetMovieTimeScale
GetMovieTimeBase

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996